home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Games #12
/
GEGA012.iso
/
Jogos de Azar
/
720.swf
/
scripts
/
DefineButton2_126
/
BUTTONCONDACTION on(release).as
Wrap
Text File
|
2006-01-17
|
1KB
|
33 lines
on(release){
if(eval("_root:status") == "Deal")
{
if(eval("_root:points") - Number(_root.tbet) >= 0)
{
"_root:NewGame"();
_root.button = "HIT";
set("_root:points",eval("_root:points") - Number(_root.tbet));
set("_root:tcredits","");
set("_root:tcredits",eval("_root:points"));
_root.mcdeal.gotoAndStop(2);
_root.mcmore.gotoAndStop(2);
_root.mcless.gotoAndStop(2);
set("_root:okFirst",true);
_root.SendVariables.gotoAndStop("SendBet");
}
else
{
_root.err1._visible = true;
}
}
if((eval("_root:status") == "Player" || eval("_root:status") == "Player2") && eval("_root:okGo") == true)
{
set("_root:okCard",true);
set("_root:db",false);
_root.mcdeal.gotoAndStop(2);
_root.mcstand.gotoAndStop(2);
_root.mcdouble.gotoAndStop(2);
_root.mcsplit.gotoAndStop(2);
_root.mcins.gotoAndStop(2);
}
}